@model IEnumerable<AlphaWebsite.Models.UserPersonalInformation>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            User
        </th>
        <th>
            Role
        </th>
        <th>
            FirstName
        </th>
        <th>
            LastName
        </th>
        <th>
            ScreenName
        </th>
        <th>
            EmailAddress
        </th>
        <th>
            Address1
        </th>
        <th>
            Address2
        </th>
        <th>
            City
        </th>
        <th>
            District
        </th>
        <th>
            HomePhone
        </th>
        <th>
            MobilePhone
        </th>
        <th>
            WorkPhone
        </th>
        <th>
            Ext
        </th>
        <th>
            Fax
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserID }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserID })
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.User).ToString()
        </td>
        <td>
			@item.Role
        </td>
        <td>
			@item.FirstName
        </td>
        <td>
			@item.LastName
        </td>
        <td>
			@item.ScreenName
        </td>
        <td>
			@item.EmailAddress
        </td>
        <td>
			@item.Address1
        </td>
        <td>
			@item.Address2
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.City).ToString()
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.District).ToString()
        </td>
        <td>
			@item.HomePhone
        </td>
        <td>
			@item.MobilePhone
        </td>
        <td>
			@item.WorkPhone
        </td>
        <td>
			@item.Ext
        </td>
        <td>
			@item.Fax
        </td>
    </tr>
}

</table>


